package study.map;

public class Person {

	private String name;

	private String sex;

	private Integer age;

	private String work;

	private String address;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {

		StringBuffer sb = new StringBuffer();
		sb.append("[");
		sb.append("name=" + name + ";");
		sb.append("sex=" + sex + ";");
		sb.append("age=" + age + ";");
		sb.append("work=" + work + ";");
		sb.append("address=" + address + ";");
		sb.append("]");

		return sb.toString();
	}
}
